package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbDutyUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_duty_user", catalog = "imcdbserver")
public class TbDutyUser implements java.io.Serializable {

	// Fields

	private TbDutyUserId id;

	// Constructors

	/** default constructor */
	public TbDutyUser() {
	}

	/** full constructor */
	public TbDutyUser(TbDutyUserId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "udId", column = @Column(name = "ud_id")),
			@AttributeOverride(name = "uiId", column = @Column(name = "ui_id")) })
	public TbDutyUserId getId() {
		return this.id;
	}

	public void setId(TbDutyUserId id) {
		this.id = id;
	}

}